-- GENERATED SPELL FOR [Highborne Summoner] --


function spell0_11466(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11466', 621, 1)
end

function spell1_11466(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(12466,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11466', 3000, 1)
end

function spell2_11466(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(15063,pUnit)
pUnit:RegisterEvent('Sorts_11466', 8284, 1)
end

function Sorts_11466(pUnit, Event)
local choix_sorts_11466 = math.random(0, 2)
if choix_sorts_11466 == 0 then
pUnit:RegisterEvent('spell0_11466', 1, 1)
end
if choix_sorts_11466 == 1 then
pUnit:RegisterEvent('spell1_11466', 1, 1)
end
if choix_sorts_11466 == 2 then
pUnit:RegisterEvent('spell2_11466', 1, 1)
end
end

function mob11466_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11466', math.random(1500, 3000), 1)
end

function mob11466_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11466_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11466_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11466, 1, 'mob11466_Action')
RegisterUnitEvent(11466, 2, 'mob11466_Leave')
RegisterUnitEvent(11466, 3, 'mob11466_Kill')
RegisterUnitEvent(11466, 4, 'mob11466_Die')
